package com.wxj.book.service;

import com.github.pagehelper.PageInfo;
import com.wxj.book.pojo.Book;

import java.util.List;

public interface BookService {
    List<Book> getRandom();

    Book getByBookId(Integer bookId);

    List<Book> getByCategoryId(Integer categoryId);

    List<Book> getNewBook();

    PageInfo<Book> getAllByCategoryId(Integer pageNum, Integer pageSize, Integer categoryId);

    List<Book> getRecommend();

    PageInfo<Book> getByKey(Integer pageNum, Integer pageSize, String key);
}
